package team.seekers.oj.homework.conventer;

import team.seekers.oj.contest.converter.BaseContestConverter;
import team.seekers.oj.contest.dto.ContestCreateReqDTO;
import team.seekers.oj.contest.entity.ContestDO;
import team.seekers.oj.homework.dto.HomeworkCreateReqDTO;
import team.seekers.oj.homework.entity.HomeworkDO;

import java.util.List;
import java.util.Optional;

@org.mapstruct.Mapper(
        componentModel = "spring",
        imports = {Optional.class, List.class}
)
public interface HomeworkCreateReqConverter extends BaseHomeworkConverter<HomeworkDO, HomeworkCreateReqDTO> {

    HomeworkDO from(HomeworkCreateReqDTO source);

}